﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CARMSData.CollectionClasses;
using CARMSData.EntityClasses;
using CARMSData.HelperClasses;

namespace CARMSBusiness
{

    public class ActionBusiness
    {
        /// <summary>
        /// G102 消息模板,根据消息模板名称 取得消息模板的entity
        /// </summary>
        /// <param name="strActionName"></param>
        /// <returns></returns>
        public static G102Entity GetG102EntityByActionName(string strActionName)
        {
            var collection = new G102Collection();
            collection.GetMulti(G102Fields.G1021 == strActionName);
            if(collection.Count>0)
            {
                return collection[0];
            }
            return null;
        }
    }
}
